package business.impls.stores;

import business.impls.commons.implAbitSystemData;
import business.impls.commons.jdbcTable;
import business.impls.classes.implSpez;
import business.interfaces.stores.SpezStore;
import business.interfaces.classes.Spez;
import business.interfaces.classes.Abit;

import java.util.ArrayList;

/**
 * Created by IntelliJ IDEA.
 * User: alex
 * Date: 13.04.2005
 * Time: 17:19:28
 * To change this template use File | Settings | File Templates.
 */
public class implSpezStore extends implAbitSystemData implements SpezStore{

    public Spez getSpezbyID(int ID) {
        implSpez tmp = new implSpez();
        tmp.setDataProvider(prov);
        tmp.setDataSystem(system);
        tmp.setSpezID(ID);
        return tmp;
    }

    public ArrayList<Spez> getSpezForAbit(Abit q) {
        implSpez tmp = new implSpez();
        tmp.setDataProvider(prov);
        tmp.setDataSystem(system);
        return tmp.getSpezForAbit(q);
    }

    public Spez getMainSpez(Abit abit) {
        implSpez tmp = new implSpez();
        tmp.setDataProvider(prov);
        tmp.setDataSystem(system);
        return tmp.getMainSpez(abit);

    }

}
